package utils

import (
	"bytes"
	"os"
	"runtime"
	"strconv"
)

func GetGid() uint64 {
	buff := make([]byte, 32)
	runtime.Stack(buff, false)
	buff = buff[10:]
	end := bytes.IndexByte(buff, ' ')
	id, _ := strconv.ParseUint(string(buff[:end]), 10, 64)
	return id
}

func GetCurrentPath() string {
	path, _ := os.Getwd()
	return path
}
